package student.aistar.entity;


import java.util.Date;

public class TVideo {

  private long id;
  private String title;
  private Date createDate;
  private double price;
  private String videoUrl;
  private User user;

  public TVideo() {
  }

  public TVideo(long id, String title, Date createDate, double price, String videoUrl, User user) {
    this.id = id;
    this.title = title;
    this.createDate = createDate;
    this.price = price;
    this.videoUrl = videoUrl;
    this.user = user;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }


  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }


  public String getVideoUrl() {
    return videoUrl;
  }

  public void setVideoUrl(String videoUrl) {
    this.videoUrl = videoUrl;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("TVideo{");
    sb.append("id=").append(id);
    sb.append(", title='").append(title).append('\'');
    sb.append(", createDate=").append(createDate);
    sb.append(", price=").append(price);
    sb.append(", videoUrl='").append(videoUrl).append('\'');
    sb.append(", user=").append(user);
    sb.append('}');
    return sb.toString();
  }
}
